﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.DisputeInformations;

namespace LeadThing.AbpZeroTemplate.DisputeInformations.EntityMapper.DisputeInformations
{

    /// <summary>
    /// 矛盾纠纷信息的数据配置文件
    /// </summary>
    public class DisputeInformationCfg : EntityTypeConfiguration<DisputeInformation>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public DisputeInformationCfg()
        {
            ToTable("DisputeInformation", AbpZeroTemplateConsts.SchemaName.Basic);


            // 上传人
            Property(a => a.UploadName).HasMaxLength(50);
            // 当事人
            Property(a => a.Party).HasMaxLength(50);
            // 手机号
            Property(a => a.Phone).HasMaxLength(11);
            // 事发地点
            Property(a => a.EventAddress).HasMaxLength(500);
            // 事件描述
            Property(a => a.EventDesc).HasMaxLength(4000);
            // 调查取证
            Property(a => a.Evidence).HasMaxLength(4000);
            // 协议书
            Property(a => a.Agreement).HasMaxLength(4000);
            // 意见
            Property(a => a.SuggestionDesc).HasMaxLength(500);
            // X坐标
            Property(a => a.XPoint).HasMaxLength(100);
            // Y坐标
            Property(a => a.YPoint).HasMaxLength(100);
        }
    }
}